<script type="text/javascript">
	
	
	var target = 'receptor.php';
	$(function(){
		$("#grid_cont").simpleGrid(null,target,{
			headers:{
				"user_id"		:{title:"ID",key:true,editable:false,type:'int'},
				"name"			:{title:"UserName"},
				"gender"		:{title:"Gender", possibleValues:{'f':'Female','m':'Male'}, type:'select', defaultValue:'f'},
				"dep_name"		:{title:"Site"},
				"position_id"	:{title:"position_id", type:'int',show:false},
				"position"		:{title:"Position", width:'30%'}
				
			},
			lang:'en',
			maxRows:10,
			total:<?php echo count($data)?>,
			source:'http://localhost/svn_simplegrid/trunk/demoFlavor/data/'
		});
	});
	
</script>
</head>

<body>
<pre> <?php echo json_encode($data) ?></pre>
<h1>SimpleGrid v0.1</h1>

<p>Basic local loading data from 4 tables using flavorphp:</p>

<div id="grid_cont"></div>

</body>
</html>
	